import { IPanelContainer } from '@ibiz/model-core';
import {
  PanelItemController,
  ViewLayoutPanelController,
} from '../../../control';

/**
 * 面板滚动容器控制器
 *
 * @author lxm
 * @date 2023-02-07 06:05:23
 * @export
 * @class PanelButtonController
 * @extends {PanelItemController}
 */
export class ScrollContainerController extends PanelItemController<IPanelContainer> {
  /**
   * 面板控制器
   *
   * @author lxm
   * @date 2022-08-24 22:08:59
   * @type {PanelController}
   */
  declare panel: ViewLayoutPanelController;

  protected async onInit(): Promise<void> {
    await super.onInit();
    // 滚动容器高宽默认占满
    this.state.layout.width = '100%';
    this.state.layout.height = '100%';
  }
}
